SRCS:= $(wildcard *.c)
OBJS:= $(patsubst %.c , %.o,(SRCS));
CC:= gcc
server : $(OBJS)
    $(CC) $^ - o $@ -g - pthread
%.o : %.c
    $(CC) -c $^ -o $@ -g
clean :
 $(RM) server $(OBJS)
 rebuild :clean server